package jvmTest;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author G_Y
 * @Date 2021/2/21 14:53
 * @Description: // TODO
 **/
public class DumpOutOfMemoryErrorTest {
    static class OOMObject {
    }

    public static void main(String[] args) {
        List<OOMObject> list = new ArrayList<>();
        while (true) {
            list.add(new OOMObject());
        }
    }
}
